home *** CD-ROM | disk | FTP | other *** search
- 103
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- PrintDlg
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baPrintDlg shows the system printer dialog.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baPrintDlg( Flags )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer
- --- RECORDSEPARATOR ---
- Flags alters the behaviour of the dialog. No Flags are presently defined, always
- --- RECORDSEPARATOR ---
- use 0.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer
- --- RECORDSEPARATOR ---
- Returns 1 if user selects Print, otherwise 0.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set ok = baPrinterDlg( 0 )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- ok := baPrinterDlg( 0 )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- This function does not do any printing - it just shows the dialog box.
- --- RECORDSEPARATOR ---
- The return will be 1 if the user clicks the 'Print' button, or 0 if the user cancels. If the
- --- RECORDSEPARATOR ---
- user clicks Print, then the selections the user has made in the dialog will be set as
- --- RECORDSEPARATOR ---
- the default printer settings. You can retrieve these settings by using baPrinterInfo.
- --- RECORDSEPARATOR ---
- For example, baPrinterInfo( "copies" ) will return the number of copies the user
- --- RECORDSEPARATOR ---
- selected.
- --- RECORDSEPARATOR ---
- if baPrintDlg( 0 ) = 1 then
- --- RECORDSEPARATOR ---
- -- user selected to print
- --- RECORDSEPARATOR ---
- copies = baPrinterInfo( "copies" )
- --- RECORDSEPARATOR ---
- -- get number of copies entered
- --- RECORDSEPARATOR ---
- doMyPrint( copies )
- --- RECORDSEPARATOR ---
- -- pass to your printing routine
- --- RECORDSEPARATOR ---
- end if
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- See also:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baPrinterInfo.
- --- RECORDSEPARATOR ---
- baSetPrinter
- --- RECORDSEPARATOR ---
- baPageSetupDlg